package ooday01.homework.phone;

/**
 * Car类和CarTest类：
 * Car类：brand(品牌)，color，price，构造方法()，start()、run()、stop()
 * CarTest类：创建对象，访问测试
 */
public class Phone {
    String brand;
    String color;
    double price;

    Phone() {
    }

    Phone(String brand, String color, double price) {
        this.brand = brand;
        this.color = color;
        this.price = price;
    }

    void start() {
        System.out.println(this.brand + "牌子的" + this.color + "颜色的" + this.price + "块钱的手机开机了");
    }

    void run() {
        System.out.println(this.brand + "牌子的" + this.color + "颜色的" + this.price + "块钱的手机运行了");
    }

    void stop() {
        System.out.println(this.brand + "牌子的" + this.color + "颜色的" + this.price + "块钱的手机关机了");
    }
}